import request from '@/utils/request'

// 获取地址列表
export const getAddressList = (params) => {
  return request.get('/address/list', params)
}
// 添加地址
export const addAddress = (params) => {
  return request.post('/api/address', params)
}
// 修改地址
export const updateAddress = (id, params) => {
  return request.put(`/api/address/${id}`, params)
}
// 删除地址
export const deleteAddress = (id) => {
  return request.delete(`/api/address/${id}`)
}
